maint: Add missing #include <glib-object.h> directive

* nclua/canvas.c: Likewise; required in systems where g_type_init must
be explicitly called.
* nclua/event/socket.c: Likewise.
* nclua/event/stopwatch.c: Likewise.
* tests/tests0.c: Likewise.