[nps] fix compilation on newer systems