Put on ifdefs so that the orientation routine doesn't cause a compilation
error on the old SDKs.