Generate .dylib on MacOS