merged fix from RC_0_16

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

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

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