Synchronize cmake submodule.

  Fix distcheck target.
Create files in binary directory instead of source directory.