Fix building for mac.