fixed some bugs that provented some C Bindings from building