This commit fixes a bug with the old Mach-O backend, where it is
possible for a header to be written that does not contain enough
space for the UUID and codesign sections to be present.
To fix it, we simply add a padding to the header to ensure there is
always enough space.
Note: this bug is not present in the new Mach-O backend, but
we couldn't use that for other reasons.
clang-format: please reformat the code