Use the more appropriate __clang_version__.
Fix some unused function warnings.

Clang 3.4 is more aggressive on this.
Fix MinGW compile.