fixed compiler warnings

- warning: deprecated conversion from string constant to ‘char*’
- warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument has type ...::size_type