Revert "Revert to GCC 4.6"

This reverts commit dcf3fb334ca6a49276772d52af63a55b73b0e170.

(cherry picked from commit f356bfb758f17a2d22a53f4273b4549f8aaf0043)