[coverage] Fix coverage link option with CXX compiler.