Buildfix if NIX is built with libcurl

When NIX is built with libcurl network backend then in some cases
the glib.h is not included. This is also such a case. Just added a
simple glib.h include to the file.