Fixed build, added wrappers for the three basic functions and all structs used. Test still does not run.