Fixed build on MacOS X