cocoa: allow to embed into an arbitrary NSView

Basically add if guards on all the problematic features. I'm still thinking
about a better way to handle this, but for the time being, this will do.