Fix bugs about range request and explorer crashes

1. fix a bug that when header contains a form like "Range: 200-", the range request
support will fail
2. (windows) fix a bug that when explorer.exe crashes due to some
reason, the tray icon will disappear.