Removing "--without-threads" in configure fixed it.

thanks
Abhishek