Single-target generate functionality.
Improve test error handling.
Fix variable initialization error on mingw.