Expand bootstrap script to support Cygwin in Windows
Don't create a temp file when checking for libcheck