Fixed return code, updated Makefile

-When using LM4Flash would return 0 in some cases of failure (like Unable to find any ICDI devices), this is now fixed.
-Updated the makefile of LM4Flash to be able to make a debugbuild.