Don't make -g and asserts mutually exclusive with CDEBUG

And also fix wrong printf formatting