This enables necessary functions once for all. As a consequence, define common.h before any other header.
Include config.h and compat.h in common.h, and include common.h from all source files.