ADDED: library(sandbox): declare copy_term_nat/2 as safe.
Define QSORT_WITH_NESTED_FUNCTIONS when building Cygwin version

Hi,

This patch is required to build current git master on Cygwin.  Cygwin is
lacking a qsort_r function yet.

Thanks,
Corinna