Fix Mac build