Fix non-windows compilation