fix atm driver build, fix static build of sched and crypto stuff