image: use explitic padding on dependency version

This struct currently relies on padding being done by the C compiler.
Although this is generally done the same across targets, this isn't
required, and it is better to make any padding explicit.  This also
makes it clear that there is extra space in this structure that can be
used for another purpose.

The python imgtool is also fixed to match.  It was using a 32-bit int,
which only worked in the little endian case.

Signed-off-by: David Brown <david.brown@linaro.org>
diff --git a/scripts/imgtool/image.py b/scripts/imgtool/image.py
index 9bb4801..251aa9a 100644
--- a/scripts/imgtool/image.py
+++ b/scripts/imgtool/image.py
@@ -202,7 +202,7 @@
             for i in range(dependencies_num):
                 e = STRUCT_ENDIAN_DICT[self.endian]
                 payload = struct.pack(
-                                e + 'I'+'BBHI',
+                                e + 'B3x'+'BBHI',
                                 int(dependencies[DEP_IMAGES_KEY][i]),
                                 dependencies[DEP_VERSIONS_KEY][i].major,
                                 dependencies[DEP_VERSIONS_KEY][i].minor,