Conditionally define types depending upon feature availability.