Fix some warnings, and update submodules.