Version 1.2: Incorporate bug fixes from chronial, including improved Win32 support.