Reduced compile errors from Windows-specific file system access code by replacing with standard C++ library functions