Add link library to pthread if under Linux