[xrick] add define for legacy_common_support