merged changes from RC_1_0

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

git-svn-id: http://libtorrent.googlecode.com/svn/trunk@10400 f43f7eb3-cfe1-5f9d-1b5f-e45aa6702bda
fix some of the build errors in examples

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