Fix build when NSD is enabled.