Fix nt2 dependency

New nt2 release introduces a few API change that are not trivial to fix