The Iceland international scored with three minutes remaining to seal Preston’s first Championship victory in over a month.