Add 'Text' open mode to log file for proper line endings on Windows
Temporary fix for version.h generation on Windows with MinGW; fixes #16