Fix a few mistakes in makefile

My last makefile commit introduced a few bugs I noticed when porting
the changes to the CrashCatcher project.