Updated the cmake file and submodules.

Some warnings removed.