C90 doesn't support z modifier in printf's, so cast values to (unsigned long) which should be the same size as size_t on both ILP32 and LP64.