updated mkbootimg.c from AOSP & CM