ranlib/ar fixes