Merge pull request #109 from nuisanceofcats/master

Fix 'make crystal', .PHONY targets, don't assume . is in PATH.
Use mkstemp instead of deprecated tmpnam.