--- wmaloader-0.1.orig/wmaloader.c
+++ wmaloader-0.1/wmaloader.c
@@ -384,7 +384,7 @@
 
 /*------------------------------------------------------------------------*/
 int parse_command_line(int argc, char **argv){
-	char x = 0;
+	signed char x = 0;
     int idx = 0;
 
 	static struct option opts[] =
--- wmaloader-0.1.orig/Makefile
+++ wmaloader-0.1/Makefile
@@ -17,13 +17,13 @@
 
 
 # Where to install binary
-DEST=/usr/local/bin
+DEST=/usr/sbin
 
 # Path to uPnP include files
-UPNP_INC=/usr/local/upnp
+UPNP_INC=/usr/include/upnp
 
 # Path to uPnP libraries
-UPNP_LIBS=/usr/local/lib/upnp
+UPNP_LIBS=/usr/lib
 
 CC=gcc
 LDFLAGS=-lixml -lupnp -lthreadutil -L$(UPNP_LIBS)
--- wmaloader-0.1.orig/image_transfer.c
+++ wmaloader-0.1/image_transfer.c
@@ -19,6 +19,7 @@
 /*------------------------------------------------------------------------*/
 
 /* system */
+#include <limits.h>
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
