Change obsolete function/variable in Yasnippet.

They are obsolete since Yasnippet 0.8.