Only enable avcapture when Foundation framework is found.