Fix broken 64 bit ID
Get rid of inttypes.h on Windows, add getopt library. Full compilation of examples and tests on Visual Studio.