IMPALA-983: Move building thirdparty to CMake. Remove some generated
files.