Compiler detection

This adds a bit of smarts for noticing if we're building with Clang vs. Gcc. Partial fix for issue #768.