Update gf_base.h

Add support for 2.31 and above.
Only glib.h can be included directly.
Merge pull request #11 from cookiekiller/master

This is needed to make it build with glib 2.31 and above.