Removed bad valgrind_undefined usage, fixed ALT_DEBUG expressions.