Revert "O3 optimization"

This reverts commit 47944d6c934aa9b076e53aede2241cdd46bcd7ba.
Revert "Enable O3 on modules"

This reverts commit 01cd502b2b2032e268f3bc70c0ac6b373bd80da0.