Update NSD to 4.1.0

This pull request updates NSD to the latest released version, which fixes several bugs.