Add two new accessors to the C bindings, patch by Wladimir van der Laan!