initial windows commit
minor windows related changes
few more minor changes + compilation script finished