Remove pre-2.24 checks from `src/gtkcompat.h`