Complete port to linux and c++11. Implememnt linux version of listing files in a directory