Treat warnings as errors.
Don't unnecessarily include Qt definitions.
Mark external libraries as system headers.
Fix build error with clang.
Merge pull request #23 from Ventero/flags

Some minor CMake stuff.