Fix compilation on Mac OS X with Cg installed.

Now you can turn on `VEGA_ENABLE_CG_SUPPORT` and
expect the build to complete.