mingw uses ar not lib for creating static libraries.