Makefile fixes: Library build, targets

This fixes #32 so that the static library builds correctly:

Changed the build command for the static library to include all objects
and added .PHONY for the targets that do not create files of the same
name.