Valgrind and compilation checks