Disable nancyfx diagnostics unless in debug