Make libfreefare compile in Visual Studio

Actually this was a pain.
Visual Studio is not supporting C99.
C++ has some security mechanisms like no implicit casts from void*