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.

Also, sorry about the other pull request, accidentally used my master branch as target. D'oh.