Library compiling, not tested
Tests compiling, not tested
Fix bugs in wrapper.c, tests passing