Here are the patching fixing the issues you pointed me out.
Attachment:
0001-Make-an-out-argument-a-pointer-instead-of-a-referenc.patch
Description: Binary data
Attachment:
0002-Remove-deprecated-function.patch
Description: Binary data
Attachment:
0003-Return-by-value-instead-of-passing-by-reference-to-g.patch
Description: Binary data