Fix path to OSX SDK with XCode >=4.3
Disable PIC on MinGW to reduce warnings
Introduce WARNFLAGS for default (removable) compiler warning flags
OSX build fix