Build fixes.

- Check for uint8_t
- Define _FILE_OFFSET_BITS on Linux and Solaris.