All the CSP_FLAG_FOO bit masks should be unsigned ints.