[package] linux-atm: add portability fixes