restore pthread lflags