windows build fix & initialization fix