Upgrade libs and cleanup things.