Fixing build on MacOS X