A standard Cygwin install includes "jpegtran" which supports lossless rotations. You'd need to find some other tool that understands EXIF such that you could script your rotations (and suitably change the EXIF header). Or, just install Picasa (free at picasa.google.com) and don't worry about it.