Fix ttl generator for mingw cross-compile