Partially OK Windows compilation... lot of things to do
Working Windows build