build system: Fix valgrind check