Fix NiViewer linkage