Fix build on PowerPC

PowerPC does not provide ucontext.gregs or the REG_ERR define.

Found while testing big endian platform.