fixed compile warnings

 - some types were incorrect, for example `ErlDrvSSizeT` was not `int` on my Linux x86_64 box
 - the `driver_output_term` function was deprecated and will not be available in the next Erlang release

The tests ran fine on my Debian testing machine.