Fix build on OS X