Index: Makefile.in
--- Makefile.in.orig	2008-09-27 12:31:23 +0200
+++ Makefile.in	2008-12-17 18:23:47 +0100
@@ -2,7 +2,7 @@
 PACKAGE     = @PACKAGE@
 prefix      = @prefix@
 datadir     = $(prefix)/share
-mandir	    = $(datadir)/man/man1
+mandir	    = $(prefix)/man/man1
 exec_prefix = @exec_prefix@
 bindir=@bindir@
 
@@ -19,9 +19,9 @@
 	mkdir -p $(bindir) 
 	mkdir -p $(mandir) 
 	install -m0755 wput $(bindir)
-	install -m0644 doc/wput.1.gz $(mandir)
-	ln -s $(bindir)/wput $(bindir)/wdel
-	install -m0644 doc/wdel.1.gz $(mandir)
+	install -m0644 doc/wput.1 $(mandir)
+	ln $(bindir)/wput $(bindir)/wdel
+	install -m0644 doc/wdel.1 $(mandir)
 	@echo "----------------"
 	@echo "Wput and Wdel installed. See 'wput/wdel -h' or 'man wput/wdel' for"
 	@echo "usage information."
Index: doc/Makefile
--- doc/Makefile.orig	2008-09-27 12:31:23 +0200
+++ doc/Makefile	2008-12-17 18:23:38 +0100
@@ -1,5 +1,3 @@
 all:
-	gzip < wput.1 > wput.1.gz
-	gzip < wdel.1 > wdel.1.gz
 clean:
 	rm -f wput.1.gz wdel.1.gz
Index: src/memdbg.c
--- src/memdbg.c.orig	2008-09-27 12:31:23 +0200
+++ src/memdbg.c	2008-12-17 18:23:38 +0100
@@ -1,5 +1,5 @@
 #include <stdio.h>
-#include <malloc.h>
+#include <stdlib.h>
 #include <fcntl.h>
 #ifndef WIN32
 #include <sys/socket.h>
Index: src/socketlib.c
--- src/socketlib.c.orig	2008-09-27 12:31:23 +0200
+++ src/socketlib.c	2008-12-17 18:23:38 +0100
@@ -20,7 +20,7 @@
  * It is meant to provide some library functions. The only required external depency
  * the printip function that is provided in utils.c */
 
-#include <malloc.h>
+#include <stdlib.h>
 #include <string.h>
 #include <fcntl.h>
 #include <errno.h>
