fix up Makefile to support a static version

Borrowed from ponymix