Fix build issue on Mac.