Fixed https://github.com/msgpack/msgpack-c/pull/95 on poc/0.6 branch.
Merge pull request #140 from redboltz/fix_issue95_on_poc0.6

Fixed https://github.com/msgpack/msgpack-c/pull/95 on poc/0.6 branch.