Revert "build/core: Use better default compiler flags"

This reverts commit f89bcfb8e5b1b4e8320d0a3e2d89b668b1988596.