At least builds now, even though the C API documentation is still empty. (cherry picked from commit 29bc09b7)