common/mlx5: wrap memory allocation on Windows