Add more types from cusparse.h, fix several errors interfering with compilation.