Add some useful accessors to c++ api that appear to be missing from the c api