Fix use of deprecated accesslib functions.