Fixed abnormal image on windows

adb in windows add tow char "\r\n" after a \r char, which
is diff from unix (only on char \n after \r).

Added missed header for usleep()