Fixed build on Mac OSX.