Fix code coverage usage only with clang or gnu