build system: Add check target for valgrind