Fix a couple of runtime bugs related to data seg initialization. Does work yet, but the program will at least complete