Moved some shared definitions into a separate header or to the config.h.