Use GCC as compiler and add valgrind leak check flag.