Several changes for windows support, patch from anmo, better settings, abspaths and more