[CMake][libcxxabi] Fix the -target and -gcc-toolchain flag handling