o Add gcc version check for optimized and profile builds. gcc 4.7.0 is buggy when -O2 and -O3 level optimization is turned on
Restore macos SDK path settings
commit after merge