make mac compile able
fix build @mac