short circuit 32bit multiplication, fix windows termios problem