Fix undefined reference error of g_variant_get_float