Moving checks out of s&m files (was Re: [AC21.5Q21.4] xemacs-21.5: fix build on FreeBSD)