Use const_cast to resolve cast from string literal to LPTSTR (char*) (-Wwrite-strings fix)