Allow to compile also with libsoup below 2.4.