Index: Makefile
--- Makefile.orig	2008-06-23 21:32:28 +0200
+++ Makefile	2009-10-16 20:59:26 +0200
@@ -1,6 +1,6 @@
 
-UNAME_S := $(shell uname -s 2>/dev/null || echo unknown)
-UNAME_O := $(shell uname -o 2>/dev/null || echo unknown)
+UNAME_S := unknown
+UNAME_O := unknown
 
 ifdef DEBUG
 CFLAGS = -O0 -g -Wextra -DMEMDEBUG -DSTRBUF_CHECK
@@ -29,6 +29,10 @@
 MANDIR  = $(PREFIX)/share/man
 MAN1DIR = $(MANDIR)/man1
 
+CFLAGS += -DICONV_CHAR="char" -I$(PREFIX)/include
+LDFLAGS += -L$(PREFIX)/lib
+LIBS += -liconv
+
 ifeq ($(UNAME_S),FreeBSD)
 	CFLAGS += -DICONV_CHAR="const char" -I/usr/local/include
 	LDFLAGS += -L/usr/local/lib
