mingw uses ar not lib for creating static libraries.
2 more Solaris fixes
Merge branch 'master' into release-0.15.0