Fixed static analysis errors.
Updated libraries.