Moved windows specific code to file loader