fix CXX flags; improve detection of coverage