g++ replaced by gcc, fixed pthread link in helper.py