bind some cms flags
properly remove flags that don't exist when CMS is not available
fix some cffi related warnings
Merge pull request #1528 from reaperhulk/cms-flags

bind some cms flags