Use GTK_CHECK_VERSION to use smooth scrolling on gtk 3.4.