Add z to the “External Libraries to Link” setting and then usr/lib to “Extra Library Search Paths”.
z
usr/lib