Revert "build scripts:  remove configurable -O3 options"

This reverts commit 703a18911af7b0ba098e5e4690378f4f3199b9cf.