disable stderr output checks if running under valgrind, since that outputs other stuff to stderr