Try turning off Whole Program Optimization and Link-time Code Generation