added pthread library to test