Fix build on 32-bit architectures