fixed warning: enumeral and non-enumeral type in conditional expression
when using gcc 4.7.2 (maybe earlier versions with C++0x/11 support too)
Fixed autoptr warnings using modifications from
https://github.com/msgpack/msgpack/pull/80