cmake: support debug build by -DGRN_WITH_DEBUG=yes