prefix cs_ to global variables to avoid link problems (#1102)

10 files changed