[Ide] Work around a bug in gtk-sharp with GLib.LogFunc

Older versions of gtk-sharp had the wrong signature for a
delegate which could cause stackcorruption or any number
of other bad things. For now we will just copy the required
declarations into MD itself.