Fix build on mac.