Release.
Fix warning.
Fix discover test on BSD.
Trivial debug message fix.