Revert "remove -fno-aggressive-loop-optimizations for 4.7"

This reverts commit fc9424445c5c589c2e4c5a44bdff993067eb6b82.