Fix test for use with g++