Fixed downloading and building of g3d