fix deprecated conversion from string constant to ‘char*'

added some missing const to char* parameters to silence gcc warning about 'deprecated conversion from string constant to ‘char*’'