merged export fix from RC_0_16

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

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