Index: b/jni/GNUmakefile
===================================================================
--- a/jni/GNUmakefile	2013-05-11 23:13:56.101912633 +0000
+++ b/jni/GNUmakefile	2013-05-11 23:14:28.978133869 +0000
@@ -65,7 +65,7 @@
 
 # MacOS headers aren't completely warning free, so turn them off
 ifneq ($(OS),darwin)
-  WFLAGS += -Wundef -Werror
+  WFLAGS += -Wundef -Werror -Wno-error=unused-parameter
 endif
 WFLAGS += -W -Wall -Wno-unused -Wno-parentheses
 PICFLAGS = -fPIC
@@ -156,7 +156,7 @@
 endif
 
 ifeq ($(OS), linux)
-  SOFLAGS = -shared -mimpure-text -static-libgcc -Wl,-soname,$(@F) -Wl,-O1
+  SOFLAGS = -shared -static-libgcc -Wl,-soname,$(@F) -Wl,-O1
   CFLAGS += -pthread
 endif
 
Index: b/libtest/GNUmakefile
===================================================================
--- a/libtest/GNUmakefile	2013-05-11 23:13:56.101912633 +0000
+++ b/libtest/GNUmakefile	2013-05-11 23:14:17.886064740 +0000
@@ -45,9 +45,9 @@
 #   http://weblogs.java.net/blog/kellyohair/archive/2006/01/compilation_of_1.html
 JFLAGS = -fno-omit-frame-pointer -fno-strict-aliasing
 OFLAGS = -O2 $(JFLAGS)
-WFLAGS = -W -Werror -Wall -Wno-unused -Wno-parentheses
+WFLAGS = -W -Werror -Wno-error=unused-parameter -Wall -Wno-unused -Wno-parentheses
 PICFLAGS = -fPIC
-SOFLAGS = -shared -mimpure-text -Wl,-O1
+SOFLAGS = -shared -Wl,-O1
 LDFLAGS += $(SOFLAGS)
 
 IFLAGS = -I"$(BUILD_DIR)"
