added optimization for normal static libraries Tokutek/mongo#983