32-bit support

Created by: CompPhysChris

Need to check if running 32-bit system and adjust memory usage accordingly.