. Use ${PTHREAD_LIBS} rather than -pthread or -lc_r. . Install system preferences to avoid annoying and constant error messages. Approved by: phantom (the update, anyway)