[sr-dev] git:master: core and modules: fix compile warnings on freebsd