Fixing build for MacOSX