Add an appveyor build config.
Fix version check.
Remove unused function.
Copy jars to the target directory.