These c functions will disappear as soon as we use boost::filesystem for linux and <filesystem> for all windows functions