Update memory sizes to 64 bit and fix compilation warnings.