Fix compilation failure due to old style cast to const char *