Fix compilation on Mac OS with g++