added pthread library to a test exe