add option to compile DND and DSD