Modifications towards making code compile on win

Modifications to make code compile on windows

It should compile with win32, but for several reasons does not yet work on my 64bit win8: I did not yet manage to get cppunit build 64bit code and also we are triggering a VC++ compiler bug in "Realse" mode. In "Debug" mode things should build as the bug is related to optimization routines.

Further changes following
But what happens if you just remove the NIXAPI from the template. I thought that we don't need to export the template function since the compiler will instantiate it in every translation unit (i.e. also the binary the library is linking to) and the linker then de-duplicate. Maybe on Win32 it is different again (sigh) but as far as I remember it worked perfectly fine for me. Does it work for you too or do you get build/linker errors then?