[SR-Dev] [PATCH 4/8] Various fixes to make the module compatible with libsrdb1