Adds constructor to Version.