ZgatewayRF2 does not compile on arduino. Error on NewRemoteReceiver::init

Openmqttgateway v1.5.1 does not compile with ZgatewayRF2 elected.
NewRemoteSwitch library used from (GitHub - 1technophile/NewRemoteSwitch: NewRemoteSwitch library v1.2.0 (20140128) for Arduino 1.0 Made by Randy Simons http://randysimons.nl/)

Errror during compile:
OpenMQTTGateway/OpenMQTTGateway-1.5.1/main/ZgatewayRF2.ino: In function ‘void setupRF2()’:
ZgatewayRF2:64:59: error: no matching function for call to ‘NewRemoteReceiver::init(int, int, void (&)(unsigned int, long unsigned int, long unsigned int, long unsigned int, long unsigned int))’
NewRemoteReceiver::init(RF_RECEIVER_GPIO, 2, rf2Callback);

Without ZgatewayRF2 (only ZgatewayRF) Openmqttgateway v1.5.1 compiles normally with Arduino IDE on a ESP32
^

I installed some old libraries and the problem is solved. Maybe a point of approvement? Which libraries are needed?