Fix for Mac: *.dylib instead of *.so