disable optimistic disconnect when connection limit is low

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

git-svn-id: http://libtorrent.googlecode.com/svn@10196 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
fix missing support for DHT put salt

git-svn-id: http://libtorrent.googlecode.com/svn@10197 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
added missing includes

git-svn-id: http://libtorrent.googlecode.com/svn@10198 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
fix deprecated-functions=off build

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

git-svn-id: http://libtorrent.googlecode.com/svn@10200 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
more missing include fixes

git-svn-id: http://libtorrent.googlecode.com/svn@10201 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
fixed typo in dht_store.rst and regenerated html

git-svn-id: http://libtorrent.googlecode.com/svn@10202 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
transition to use boost.random instead of rand() and custom pseudo random generator

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

git-svn-id: http://libtorrent.googlecode.com/svn@10204 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
clean up some time_t and srand() uses

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