Clean up LTO and profile flags for clang/gcc