add makefile + fix compile errors