Fixed mklib to properly merge static libraries on darwin.