use portable types in public headers

Swaps loff_t and __u8 for int64_t and uint8_t. I'm not sure what the implications of this are as far as backwards compatibility. Presumably the ABI is fine, but could generate warnings/errors for existing users who use loff_t?