Windows compilation fix