Fixes library configuration for OSX