Refactored FileSystem::ListFiles
Fixed compilation issues