Fix static build in Makefile

This will fix "make static" to build a static binary.