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

This reverts commit 92c70e79004c7fd091a867b06f39e7a1ee44a824.