fixed some compiler warnings: differ in signedness

fixed warnings like:
- expected ‘char *’ but argument is of type ‘unsigned char *’
- pointer targets in passing argument X of ‘xxxxx’ differ in signedness [-Wpointer-sign]