start work on make the code compile on *nix, lots of ugly ifdefs around threading calls/primitives for now

deschler:
- started *nix port of jh000/master. differences between erkmos/master and jh000/master (originally forked from hg5fm/master) are too big for a clean merge.
- cherry-picked a9b43f191a42beb7f5790226c557b6375a9f26d3
- added additional threading related ifdefs
added more ifdefs for winsock and threading stuff in xptClient

deschler:
- cherry-picked 2784179d19ec94bee343f832010f7acc7fd41c38
- removed creation of autotune threads which don't seem to be used by upstream
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

deschler:
- cherry-picked 6acdd09f9a57d7d5398dfb0f80256783c4d76eef
- fixed some merge conflicts
Disabled (currently unused) opencl include which might not be available on all systems.
Still trying to get jhLib to compile..

deschler:
- cherry-picked ef71d0e30a6a2c659a695345018554c15e593857
- removed merged changes that weren't in upstream
Replaced more windows api-stuff in jhLib.
updated readme