MessageUI framework should be optional, otherwise it won't link

I got the following error using a required MessageUI.framework:
Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_MFMessageComposeViewController"

Switching to optional fixed that.