Detect tre as regexp library replacement
Add missing windows build script
Fix example client for mingw build