Tweaks to makefile for making plots and library correctly