Skip deprecated g_type_init() for GLib 2.36

It seems poetwang did partial work before (see more https://github.com/haiwen/seafile/commit/1c82bbe5a4475cac607905a727c330696661757f ), I just make that patch applied more completely.