Fix #45 adding compatibility layers to newer versions of GTK