I just remember there being issues about constructors not being called if -lpthread was not on the link line. I think perl did this but I forget.