Revise API to avoid the use of custom structs.
Remove struct definitions from header files.
update tests
Remove RANLIB from configure.ac