Fix building on OS x