1 remove muti-thread specific code
2 32-bit/64-bit support