Added debug script and cleaned up unix compilation scripts.