getrlimit/setrlimit adjustments for cygwin

Summary: stack size cannot be set on windows (cygwin always returns -1)
although cygwin can have core dump size set (it handles cores through compat layer) other windows cannot
some rlimit values are not available on all systems, check for existence

Reviewed By: @jdelong

Differential Revision: D1458893