Sync enc/dec routines with libc.
Initial support to read GPT partition tables in the kernel, if option GPT.Contributed by Markus Mueller; code based upon Bitrig's GPT support, withstricter GPT structures validation and support for alternate header places.ok deraadt@ jsing@ krw@