Added library preparation to Makefile so library is built when compiling analysis programs