dtmfio: fix warnings and improve detection