Improve static checking when configured --with-ns.