Define the build process for the adaptor dylib with a standard Makefile instead of a script. Use the correct CFLAGS depending on the version of glib installed on the system.