Add -m32 to build/link options

This fixes build errors on 64-bit systems.