Quick tx module compatability

Some changes to make this more compatible with other kernel versions and drivers