64bit: fix some more issues that caused a segfault.