Fix bugs about range request and explorer crashes

1. fix a bug that when header contains "Range: 100-", 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.
Merge pull request #106 from BusyJay/feature-2

Fix bugs about range request and explorer crashes