[atapi-pt-helper] Qemu-dm & cleanup

Mostly cleanup.
Add some patches that were left in qemu-dm branches.
Fix configure.ac and header management.