Fixed build on OS X