Revert "Add optimization flags"

This reverts commit bda5b62ad2f02572021a7463158bec1bfda589c5.
Revert "O3 optimization for modules"

This reverts commit 398490d30348e55ca4bd7529a88f8ab5f10b4028.