Fix a test when g++ is not available.
Merge pull request #1235 from nouiz/fix_nogcc

Fix a test when g++ is not available.