Move external gem requires to #register

This fixes docs building.