Cursors and extern "C" interop