accel-cpp: disable checks if not compiled with debug