Fix compile error on C++ compiler. (mismatch between char* and const char*)