Fixed a number of build warnings with gcc 4 7.3

  [Problem] build warning with gcc 4.7.3
            warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]