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

This reverts commit 113b8e4572ab7d3b0d616bdfb9d6a6faf5823aca.
Revert "Use const_cast to resolve cast from string literal to _TCHAR* (char*) (-Wwrite-strings fix)"

This reverts commit ab08dce0a50660163d11a299ee4b64264c68a80c.