Add CMAKE_EXPORT_COMPILE_COMMANDS variable

* This isn't an officially documented variable, but is useful when you
  want the Clang JSON Compilation Database file.