Don't include system headers inside extern "C++" blocks

Temporarily close the extern "C" block instead.
Define CPU_IS_BIGENDIAN with an appropriate value

This is needed by tads3/sha2.cpp.