Support 2.6.31; fix building on < 2.6.37 where IPv6 is built as a module