This fixes some missing required extensions from the docs, and corrects some related feature-detection code.