[Maria-developers] Some patches for the C client library