Started to add Windows compatibility, some other stuff