net/tap: fix build with old kernels