Move cmake and automoc4 to build dependencies