minor bug fixes. While here teach emacs22{,nox}.
Many small changes which enhance APEL's functionality. Due to the charasteristic of APEL as a portability layer of emacsen, no user visible change, but more portability, possibly.