(Clone Detection) Fixed compile errors for semantics API1 changes

* The semantic object formatting stuff was backported from API2
  to API1, which changed the API.  This commit fixes BinaryCloneDetection
  so it uses the new version of API1.

* Fixed a variety of compiler warnings.