Fix building on OS X.