Change some code to be compatible with CyanogenMod telephony