Can we use std::cerr instead of printf? Then this error messages is readable from stderr.