Fetch all tags befor mvn, cpp and cppwrap builds

Since Travis clones the repository with a default depth of 50, builds using a
tag can fail. This commit should fix failures by fetching all Git tags.