Clean up more of leftover expr functions.
Add a header to wrap the c api for c++.