HELP-11098: issue sendmsg as a call rather than a cast
HELP-11097: add backward compatibility for the template options
Merge remote-tracking branch 'upstream/3.12' into 3.12