start on port to windows
improved reading of environment variables
added missing files
made sure it compiles at non-win32
lots of fixes, still WIP
options are now handled in the correct place
seems to be working more or less, unbelievable how slow windows file handling is..
removed check on directory_entry since it was not needed and caused
enumeration to misbehave on unix
minor cmake changes