fix build problem on gtk < 2.24 #368