change library mode to static in unix makefile