C++ cross-compatible class to work with folders (directories)