C++ Program to list all files in the Directory on Windows / Linux