Use g_type_init() in test-pgn, so it can run without X.