Reworked makefile to add library to system libraries.