Fix build on OSX 10.10