Fix build with the 10.7 and 10.8 SDKs.
Enable backwards compatibility on example app XIBs.
Let SampleDocumentApp deploy to 10.6.