diff -uNr simias.orig/src/core/FlaimProvider/FlaimWrapper/Makefile.am simias/src/core/FlaimProvider/FlaimWrapper/Makefile.am
--- simias.orig/src/core/FlaimProvider/FlaimWrapper/Makefile.am	2007-10-16 17:56:05.000000000 +0200
+++ simias/src/core/FlaimProvider/FlaimWrapper/Makefile.am	2009-02-21 13:50:24.654598727 +0100
@@ -92,9 +92,9 @@
 lib=@LIB64@
 
 # NOTE: The following is a _hack_. 
-LIBFLAIM_LIBS_HACK = "-lpthread -lrt -lstdc++ -ldl -lncurses /usr/$(lib)/libflaim.a"
+# LIBFLAIM_LIBS_HACK = "-lpthread -lrt -lstdc++ -ldl -lncurses /usr/$(lib)/libflaim.a"
 
-libFlaimWrapper_la_LDFLAGS = $(LIBFLAIM_LIBS_HACK)
+libFlaimWrapper_la_LDFLAGS = $(LIBFLAIM_LIBS)
 
 install-exec-local: libFlaimWrapper.la
 	$(mkinstalldirs) $(DESTDIR)$(webbindir)