fix for build with gtk < 2.24
fix building on debian stable