Static potentials and hybrid mesons from pure SU(3) lattice gauge theory