Use cindex.parse in wrap_c, and fix some errors