Don't define strnlen in MacOS >= 10.7

In MacOS 10.7, strnlen is already available.

Change-Id: If95bdde2831200026e04fe266bfed697c384fd34