Do not use shared global structures on CYGWIN Fixes: #950 (cherry picked from commit 2c473056abdf710b6c476b7b19777d5313e71d8a)