Fix building on Mac OS.