Revert "add a few more flags to build script"

This reverts commit 8d9d2ab75ad363b975c759dd8fb248cb981ad448.