fix device orientation on android 4.3 & prepare for surfaceflinger/HWC changes