added support for 32bit systems

Added a quick 32bit systems support patch.