Fix issues relating to running the OS on real hardware.

The data segment is now set before we enter userspace, which fixes
the general protection fault we were seeing upon boot. Additional
changes include small formatting fixes in several files.