Revert "Remove invocation of deprecated g_type_init"

As suspected this just made it not work for older installations.

This reverts commit 2c83fdd1252e53f529989749832b7b3fd70d3254.