Fixed build on Mac