rebuild library to work with mac os x 10.9+