added pthread linker