fix build on unix