dupstr() should take a const char *. In particular, this allows compilation under GTK 2. [originally from svn r4198]