Integrate patches from Stefan Kangas:
* add support for i8
* fix byte compile warnings