Fix Makefile dependencies and error when running make dist twice.
Fix crash when using hamlib by removing unnecessary free call.