Import patches from sklnet tdt-driver