Revert "Revert "GCC back to 4.7""

This reverts commit 4092584f0a718ea84a4483364d5f59ab2c8b1c70.
Revert "Revert "back to o2""

This reverts commit 470b1f8755fa192b8494ea040c58e1f3b6a9ecd9.