add additional libraries for linkin
link with img2term
ported test to gtest