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

This reverts commit 355726d1e39fda0d124fa7e245d7ed740b7e20d2.