Fix Windows compilation