gpt: compile time fixes, wasn't compatible with 64 bit fixes from #32