move include of compat.h after other includes.