Joride/64bitfix

Fixed an minor issue with a large effect: an overflow crash because of some iOS devices now being 64-bit.
Also added a configuration that is the same as Debug, but with optimisations.