fix building warning and errors for AVCaptureDataAssetWriterExample