NetworkManager: fix crossbuild