Replaced strip-flags/append-flags combo with replace-flags and moved to src_compile where it belongs.
Changed paths: