fixed deprecated notices for Elgg 1.9 based on suggestions by @Man-fred
in #47