merged changes from trunk

git-svn-id: http://libtorrent.googlecode.com/svn@9991 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
minor streaming improvements

git-svn-id: http://libtorrent.googlecode.com/svn@9992 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
fix windows build

git-svn-id: http://libtorrent.googlecode.com/svn@9993 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda