allocator: added missing header (<iostream>) for error logging.