lib/glesv2: move some program related services with the new API