Now runs on 64-Bit machines

Fixed 64-Bit issues on PC
Fixed 64-Bit issues on ios