get rid of stupid size_t discrepancy and printf on 32/64bit platforms

replaced printf(%ld, size_t) with cout