Fix to compile on OSX.