Add clang to travis-ci test matrix, and fix compiler warnings as a result

We might as well compiler under both gcc and clang during CI testing, so this pull request enables that in the .travis.yml. 

In order to successfully build under clang 3 minor fixes were required.