hide windows compat function from non-windows