Since Terraform builds on Gtk--, please take a look at the Gtk-- FAQ. It covers some of the basic things about compiling Gtk-- programs.