Use guint64 instead of guint32 for message limits

guint32 is limited to 4GB message space which might be
to short for some buffers, increase to guint64 will
allow larger messages.
More cleanup