Synchronize cmake submodule.
Fix warnings: unused parameters.
Fix warnings: unused variables.
Update NEWS.

  * Add news for both v2.2 and v2.2.1.