Backported LLVM r203701

Use -std=gnu++11 on cygwin and mingw. Without this, common features like
off_t and strdup are missing. These functions aren't part of the ISO
standard, but gtest relies on them.