Revert "Fix connect in multi-thread environnement on Solaris"

This reverts the previous commit. It overwrites the CFLAGS which specifies one
of the key include directories.