Cast expressions aren't valid to use in some preprocessor constants, so change the constants to use `UINT32_C` etc. instead of casts. Fixes #146.