Use same define setup we have in eos-theme

For compatibility with the CM script