Windows compilation fixes.