Prepended custom type typedefs with ‘x’ to make them easily recognisable.
Make sure C++ 11 is used to compile.
Use the C++ includes, not the C ones.
Print extra info.
Replaced castle’s preprocessor byte order detection (which was cloned from redis) with an implementation that detects byte order at runtime.