Fixed build in OS X environment