Windows compilation issues