fix various headers/includes to work in windows