update kmtest

- get rid of all warnings
- prettyfiy some output a bit
add all warnings and dynamic link tester to makefile
add headers to api header kmlib.h
add dynamic test build to gitignore
fix warnings and use api header in test main.c