Port to GTK+ 3

Update various stuff to compile and run against gtk+ 3.0.