Fix build error on mac