markdown: Fix build with at least GObject 2.24

@codebrainz you may want to add a dependency on a newer GLib instead of this change, I leave this up to you.