fixed build on Mac