mingw64 port: make library "factory" compile