fixing Mac build