Introduce CF_ASSERT for debug builds.
(cherry picked from commit fcb9bb8b308443e758941e6213bc5fa6f5ee71ef)