Patched initialization issues.

These are temporary fixes to allow Minecraft to start.
Actual fixes will be coming later.