fixing protoypes in threadsock.h