Fix build error for Mac.