Fix compile on OSX.