Solved problem with const char* constructor not working in a compiler prior to c++11