Improvements on patch system, currently only elf64 supported.