fix TIC calculation by estimating the integral; fixes #29
adjust ape's library directory