Temporarily add debug logging to std::cout to track down a bug in Ubuntu.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>