[axe.c] fix many memory leaks
Don't forget the table file!!

Fixes a memory leak
Update kmlib
Build without openmp
add valgrind test