Fix the references on a few frameworks.

This also includes getting rid of a few unused build options.

Yes, I sometimes look into these things and try to fix it when I see it. I'm also fairly sleepy so o may be rambling more than usual.