Compile on Cygwin.

Gave up realpath, and used C++11 random facilities rather than
drand48.  Overall I'm happy with the result.