Thanks to Jonathan Worthington for coming up with a fix upstream. Also, add -Werror fixes for powerpc, tested by aja@. ok landry@