Changed library type from SHARED to MODULE to avoid generating .dylib in OS X

.dylib files are not supposed to be loaded at runtime ( http://fink.thetis.ig42.org/doc/porting/porting.en.html#shared.lib-and-mod )