fix Mac build