Libnfc 1.7.0 compat

* Fixes compat with libnfc 1.7.0
* Bugfix for is_trailer_block computation