DNS: fix warning when debug is not enabled
DNS: fix CUDA build