remove some warning related to implicit conversion of const char * to char *
remove implicit conversion of void* to char*
remove unused variable
remove unused variable
remove several unused variables