Re-arranged the code, and added a maxnumfriends counter
Update nTox_win32.c

Changed maxnumfriends to uint32_t
Merge branch 'master' of https://github.com/Astonex/ProjectTox-Core into Astonex-master

Conflicts:
	testing/nTox_win32.c
Removed deprecated function.
Fixed crashes.