Added a few casts converting from unsigned char* -> char*.