Fix for compilation on OSX 10.9