Free the heap and stack at the end of test execution.
Makefile updates.