Include <cstring> for memset

This should fix building on Illumos.