mkbootimg: support pagesizes up to 16384

Change-Id: Idd6ff27e14eac8b98728f5f9a8e8fa87e6c8e23b
Merge branch 'jellybean' into MiniCM10