Merge pull request #30 from ctiller/cppapi

Make the C++ API use C API calls to fiddle with status