Fix building on Mac