Fix a test when g++ is not available.