Improve endianess detection. PR lto/94249 * plugin-api.h: Add more robust endianess detection. (cherry picked from commit dfb68cc3)