diff -ruN libhangul-0.0.4_orig/test/Makefile.in libhangul-0.0.4/test/Makefile.in
--- test/Makefile.in.orig	Sat Jan  6 15:06:17 2007
+++ test/Makefile.in	Wed Jan 31 14:25:46 2007
@@ -153,11 +153,11 @@
 am_hangul_OBJECTS = hangul-hangul.$(OBJEXT)
 hangul_OBJECTS = $(am_hangul_OBJECTS)
 hangul_DEPENDENCIES = ../hangul/libhangul.la
-hangul_LDFLAGS =
+hangul_LDFLAGS = -liconv
 am_hanja_OBJECTS = hanja-hanja.$(OBJEXT)
 hanja_OBJECTS = $(am_hanja_OBJECTS)
 hanja_DEPENDENCIES = ../hangul/libhangul.la
-hanja_LDFLAGS =
+hanja_LDFLAGS = -liconv
 
 DEFAULT_INCLUDES =  -I. -I$(srcdir) -I$(top_builddir)
 depcomp = $(SHELL) $(top_srcdir)/depcomp
diff -ruN libhangul-0.0.4_orig/test/hangul.c libhangul-0.0.4/test/hangul.c
--- test/hangul.c.orig	Thu Jan  4 22:37:09 2007
+++ test/hangul.c	Wed Jan 31 14:25:53 2007
@@ -2,7 +2,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <iconv.h>
-#include <endian.h>
+#include <__PLATFORM__/endian.h>
 
 #include "../hangul/hangul.h"
 
