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