Fixed windows crash.
Fixed "fread() failed" bug on windows.
Merge pull request #45 from JFreegman/master

set friendnames properly and some fixes
Fixed possible bug.
Merge branch 'master' of https://github.com/Tox/toxic
fixed windows build.
fixed groupchat join but