auto directory_iterator works on OSX not linux