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