Removed dependency on dirent, using boost instead.