replace: Add memset_s() if not available