fix build on non-windows