buildfix for clang. Use cout to get around printing size_t which is architecture dependant