fix makefile for linux build
fix errors and crash in example script
build for win64vc10
fix compile error on msvc, Types.hxx and stdint.h don't fit together
fix msvc warnings