--- configure   2013-04-05 09:29:24.000000000 -0500
+++ configure   2013-11-21 14:14:43.831143243 -0600
@@ -6356,7 +6356,7 @@
 
 
 hold_cflags=$CFLAGS
-CFLAGS="$CFLAGS -export-dynamic"
+CFLAGS="$CFLAGS -Wl,-export-dynamic"
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need the -export-dynamic flag" >&5
 $as_echo_n "checking if we need the -export-dynamic flag... " >&6; }
 if ${ac_cv_export_dynamic+:} false; then :
@@ -6395,7 +6395,7 @@
 else
 
 if test "$ac_cv_c_compiler_gnu" = "yes"; then
-       ac_cv_pic="-fPIC -DPIC -shared"
+       ac_cv_pic="-std=gnu89 -fPIC -DPIC -shared"
        case `uname -s` in
                Darwin*)
                ac_cv_pic="-bundle -flat_namespace -undefined suppress"
