fix: please older emacsen, don't use LETREC after all

also fix some compiler warnings