Fix build for Mac.