fix build error on x86 machine