Makefile fixes

updated the Makefile to monitor source files (and be a bit intelligent about dynamic exe dependencies). integrating required fix for repacking.