Reworked a bit the makefiles and added "install" and "uninstall" rules to properly install the lib in /usr/lib/ and /usr/include/ dirs.
Also modified the the test files (including the Makefile) so the testing conditions simulate a real usage of the lib.