theme: fix to support old Emacs versions