fixed Makefile to compile lib and example appropriately