refactor and clean up native Makefile
valgrind target