Fixed some gcc warnings.
Fix toxcore linkage on qnx
Merge branch 'master' of https://github.com/beemaster/toxcore
Small code cleanup.