Clean up a pile of hacks in our CMake build relating to TableGen.