fixed build on non-i386 architectures