Convert some char * to const char *
Fix some compilation problems, mostly with const char *.
Fix const char * compilation
char * -> const char *