Fixed memory size caluclation problem.

See https://github.com/msgpack/msgpack-c/issues/149