Add file include/share/compat.h and start moving CPP hackery into it.
19 files changed