merged fix from RC_0_16

git-svn-id: http://libtorrent.googlecode.com/svn@9890 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
fix merge error

git-svn-id: http://libtorrent.googlecode.com/svn@9891 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
don't use F_SETLK on posix

git-svn-id: http://libtorrent.googlecode.com/svn@9892 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
merge F_SETLF change from RC_0_16

git-svn-id: http://libtorrent.googlecode.com/svn@9893 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
fix integer overflow issue of remote estimate download rate when downloading over 36 MB/s

git-svn-id: http://libtorrent.googlecode.com/svn@9894 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
merged integer overflow fix from RC_0_16

git-svn-id: http://libtorrent.googlecode.com/svn@9895 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
merged changes from trunk

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