1. patch-powerpc is similar to the one other ports use. 2. Additionally, add a missing endianness check.
mentioned in commit e337ba9d