Fixed build on MacOSX