Adding missing pthread library to linker.