Update dependencies and reduce the number of scrutinizer warnings