Adding DLL_EXPORT to CFLAGS on makefile.