* Reimplement tap_alloc for compatibility with newer GPLs