Fix teensy to work with the latest tree.

This should fix #783 - I had fixed most of this already as part of adding the pin alternate function stuff (#772), but that hasn't been merged yet.

If this lands first, I'll rebase the alternate function stuff on top of it.