Fix bug on open() /dev/kmem return value.
Add initial support to dump a mach-o image from kernel memory (kernel or kext)
Use the file offset to position the dump buffer due to alignment spaces.
Use memzero function.
Fix the output when smaller than 16 bytes or multiple of it.
Remove memzero.
Other cleanups.