Fixed build on MacOS