Build with -std=c99 and add -no-undefined to the libtool options to build DLL (windows)