adjust makefile for static compilation