Fixed static analysis errors.
Updated libraries.
Fix dirent.h on Linux