Markdown: Add support for GTK3

This PR adds support for GTK3 by adjusting build system as well as adding some GTK2-compatibility code.

TODO: Waf build system support for GTK+3 Markdown plugin.