WIN: Use COFF file header header for architecture detection (#14083)

Read the machine field from the COFF file header to get the exact
target architecture for ARM and SHx on the Windows platform.
Merge topic 'peheader' into next

bd827f9 WIN: Use COFF file header header for architecture detection (#14083)