make changes to make mac build happy