Remove unused includes
Remove dead code
Fix bug where process open test always reported failure
Use uintptr_t in place of void* for read only address