Fixed files in the src directory to resolve minor issues found by Krazy2.

Fixed an issue in t/CMakeLists.txt to deal with the tests not moc'ing properly.