rewrite build script
compile i2pcpp with pthreads