Write debug msgs to stderr instead of stdout