remove excessive c-string casts
remove obsolete lib