glib: fix on darwin (merge #644)

* include Foundation.h header
* add myself to maintainers
* build with gccApple

@vcunat: minor refactoring.