Merge pull request #172 from chufucun/const_cast

Remove c-style const casts from cpc directories