Plot: Fix warnings.
waf: Bump minimum glib version to 2.38.x.

G_DEFINE_TYPE_WITH_PRIVATE was first introduced in 2.38.x which we use.