Check md5sum after applying patch. Apply patch to in-memory buffer instead of doing crazy mmap stuff