add ac_prog_ranlib to solve pt build problem