--- dvdnav_internal.h	2006-01-28 20:52:42.000000000 +0100
+++ dvdnav_internal.h	2006-02-01 00:27:36.000000000 +0100
@@ -36,6 +36,8 @@
 
 #ifdef WIN32
 
+/* workaround for objidl.h */
+#undef STREAM_SEEK
 /* pthread_mutex_* wrapper for win32 */
 #include <windows.h>
 #include <process.h>
@@ -57,6 +59,7 @@
 }
 #include <io.h> /* read() */
 #define lseek64 _lseeki64
+#define STREAM_SEEK (STREAM_SEEK_BW|STREAM_SEEK_FW)
 
 #else
 
--- remap.c	2006-01-28 18:05:10.000000000 +0100
+++ remap.c	2006-02-01 01:20:42.000000000 +0100
@@ -198,16 +198,14 @@
     remap_t *map;
 
     /* Build the map filename */
-    home = getenv("HOME"); assert(home);
+    home = getenv("HOME");
 #ifdef WIN32
     if(!home) home = getenv("USERPROFILE");
     if(!home) home = getenv("HOMEPATH");
     if(!home) home = (char*)get_path("");
 #endif
-    strncpy(fname, home, sizeof(fname));
-    strncat(fname, "/.dvdnav/", sizeof(fname));
-    strncat(fname, title, sizeof(fname));
-    strncat(fname, ".map", sizeof(fname));
+    assert(home);
+    snprintf(fname, sizeof(fname), "%s/.dvdnav/%s.map", home, title);
 
     /* Open the map file */
     fp = fopen( fname, "r");
--- decoder.h	2006-01-28 16:22:59.000000000 +0100
+++ decoder.h	2006-02-01 00:25:33.000000000 +0100
@@ -127,7 +127,7 @@
 /* extracts some bits from the command */
 uint32_t vm_getbits(command_t* command, int32_t start, int32_t count);
 
-#ifdef TRACE
+#ifdef USE_MPDVDNAV_TRACE
 /* for debugging: prints a link in readable form */
 void vm_print_link(link_t value);
 
--- vm.h	2006-01-28 16:51:58.000000000 +0100
+++ vm.h	2006-02-01 00:33:56.000000000 +0100
@@ -181,7 +181,7 @@
 void vm_play_cell(vm_t *vm);
 #endif
 
-#ifdef TRACE
+#ifdef USE_MPDVDNAV_TRACE
 /* Debug */
 void vm_position_print(vm_t *vm, vm_position_t *position);
 #endif
