Fix path to OSX SDK with XCode >=4.3
Disable PIC on MinGW to reduce warnings