More pref fixes -Werror