That is why you have to import android.support.* versus android.app. Which forces you to have some form of preprocessing in the Java code.
Plus the API for the action bar is still missing from the support library.