build on windows

* add msgpack
* fix for vc2010
change argument order
add test