Cast string literals to const char*

This prevents the "deprecated conversion from string constant to ‘char*’" warning