env.cxx: Fix MinGW64 linking issue by partial revert of previous change.