mtpd: guard invocation of g_type_init()

g_type_init() has been deprecated (and also marked with the attribute
'deprecated') since glib 2.36 as the glib type system is now
automatically initialized. This CL guards the invocation of
g_type_init() with the glib version check marco.

BUG=chromium:680616
TEST=Ran mtpd unit tests.
TEST=Verified that mtpd worked with glib 2.34 and 2.36.

Change-Id: I3344acf323396fd06065846f746d30c42e6cf451
Reviewed-on: https://chromium-review.googlesource.com/436484
Commit-Ready: Ben Chan <benchan@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
1 file changed