Patches attached.
* The g++-4.1 fixes are required to avoid "extra qualification 'foo::' on member 'bar'" errors.
* 10 characters for the channel name isn't enough ("BBC Radio ").
* Use of thread-unsafe function.
* The constness fixes patch, as well as making a few things constant, gets rid of multiple declarations of AllowedChars.