Fix compilation on Linux. Don't read the whole file in mem for sha1()