nir: fix couple of compile warnings