Don't disable sincos optimization globally for GCC >=4.8

Change-Id: I99e34ffd8aa373daf99bed006eadc7b11bf57c5f