Modify Makefile to optionally build a static library