Numerous windows fixes and windows IDE project