Fix compilation on OSX 10.8.4 with g++.