Fix path to OSX SDK with XCode >=4.3
Disable PIC on MinGW to reduce warnings
Disable OSS under MinGW to prevent build failures during cross compiles