fixed spelling of IPD (not IDP), added linking with pthreads (for eg. ubuntu 13.04)