Thanks for your help. I don't have Cygwin. Based on your input I searched directories of all directories in my path. I found that a GCC based compiler called WinAVR that I installed recently comes with some TCL DLLs(and a Cygwin exe file). Anyway, renaming the WinAVR directory fixed the pgsql installation problem.