better makefile. less warnings from raw_tdc test-programs.
need fflush, otherwise progress indicator does not show while we wait for locking.