Added possibility to build a test executable instead of the shared library in the Makefile