bits and pieces from gtk-2-12 and gunix*.[hc] to make the file chooser