clean up unused C type names and use the right Rust types
get rid of all the struct typedefs
clean up constants