added support for 32-bit builds