Merge pull request #64 from martiert/pullRequest

Make a CHECK_THROWS macro, which tests that we throw an exception.
Started writing cmake support.

Currently this only supports gcc builds, but I'll continue working on
it to support the rest as well. The problem here seems to be the
src/Platforms directory, where I need to find a neat way to solve that.
Add support for config flags supported by automake to cmake.