Fix build on OSX and also GCC 4.7.