simple makefile to build the library
fix compile errors
fix typing mistakes