fix version check for g_type_init
add license