Delighted I finally got it.....Silly it looks now ...
Got it from msdn posts here it is for anyone stuck on similar issues.
in VS 2005 the simplest way to link ur DLL to ur project is to goto project properties by right clicking on it and the in the project property page navigate to LINKER-->INPUT-->ADDITIONAL DPENDENCIES. Here u can specify extra .lib files that ur project depends on.In General (just avobe INPUT) option u have to specify the relative lib directory also.
I am using the pthread libs and includes from the below link.