Fix cross compilation to 32-bit targets