mkqcdtbootimg: Add support for qcdt format version 2

Based on initial patch by Takuya Ogawa

Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>