fixed build on mac