adding two Makefiles for the lib and the example