Fixing Windows compilation problem