I picked this up from this email thread from 2004 and edited it enough to compile on recent GDK/GTK. Thanks to Tommi Komulainen and Juhana Sadeharju!
Context for why I'm reading these things: anko/hudkit#3
$ make
[ ... warnings and deprecation notices, but it compiles ... ]
$ ./program