updated makefile for both dynamically and statically linked builds