start work on make the code compile on *nix, lots of ugly ifdefs around threading calls/primitives for now
added more ifdefs for winsock and threading stuff in xptClient
ifdefs all around..
ifdefs all around..
* Hidden most of the windows api stuff with ifdefs, still haven't got all of it though, so doesn't compile yet.
* Decided to remove the fastcalls for non-windows systems since at least on linux x64 it will just be ignored by the compiler. Might replace it with the gcc attribute later.
* Replaced the Windows-macros for min/max with the STL versions
* Added a getNumThreads function that tries to determine the number of CPU cores in most OS's
* Replaced RtlZeroMemory with memset since its portable
* Added some temporary typedefs for BYTEs, DWORDs etc
Constructed a basic makefile
Still trying to get jhLib to compile..
Replaced more windows api-stuff in jhLib.

Signed-off-by: Erik Mossberg <lingonvecka@gmail.com>
Added some linker options to Makefile
added headers to some files and made sure it compiles on osx
added headers to some files and made sure it compiles on osx