Fix problem when compiling with valgrind support