Cleanup makefile
Rewrite file i/o library, this really needs to be redone due to mmap alignment requirements