Switch compilation C++ standard to gnu++0x, required for strdup on cygwin. Fix const char* conversions. Add space before PRIxxx constants to fix compilation on gcc 4.7
Printf format fixes for C++ ISO. Type definition fix for array inialization.
Remove some unused vars, shadowed struct and sanitize printf format strings.
Convert unsigned long long int to uint64_t and use proper PRIu64 format for printf.
Merge pull request #3 from kskalski/master

Fix warnings and errors (from some platforms / compilers) for C++