Fixed a few issues that arose when compiling for 64 bit on iOS. Just syntax issues.