mtr: fix build with globally disabled IPv6