Revert "Revert "build: Add support for TARGET_EXTRA_C{,PP}FLAGS""

This reverts commit ef75d8373af6ad9e9299b94b8209a28f57f59762.
Revert "fix build"

This reverts commit 611bb0508ed1fc93bc7e55ef0e7ff0bcf985ce9e.