Move -xc++ linker option to the start of args to apply it's effect