exe: Win fixes, create base classes for file classes