udpate msi/deb version to 3.1.0
[win] Fix compilation error.