Fixed some char paremeters to use const char.
- Fixed some warnings using GCC 4.2.1 on MacOSX.