R: fixes for gcc build and CLT > 6.0.

- Disable building against Aqua with Xcode/CLT 6.1
- patch for gcc to build correctly against Accelerate.

Fixes #1304.