Adding debug flag to compile with valgrind support