Avoid cmake warning.
Explicitly set stdlib version on OS X.

The default has changed on OS X Mavericks to libc++, but we must link
against libstdc++ to use an deployment target of 10.6.
Add support for overlays system call.