Fix some compilation problems, mostly with const char *.