Fixed build on Darwin