changed for win32
added some utility functions, made sure directories use path instead of
string and their iterators dereference to path as well