Top level cmake: add system lib as required lib for cygwin builds.