Don't try to detect strndup on OS X; it is only available on 10.7+.

Currently Mono crashes at runtime on 10.6 due to referencing strndup which is unavailable on OS X prior to 10.7.