changes for porting vi to 64-bit