Set versions using properties so they are easier to update

Also add UTF-8 build encoding, as otherwise the build will use the
current locale which may not be appropriate