Log to stderr, not stdout

Log messages should be written to stderr, not stdout.

Logging to stderr caused issues for me when running tests using [xctool](https://github.com/facebook/xctool), which uses stdout to pass json data back to the test runner. Debug messages were written to stdout from a background thread, which corrupted the json.