PR: 27904 Submitted by: Jose Marques <jose.marques@nottingham.ac.uk>
-D_THREAD_SAFE --> ${PTHREAD_CFLAGS} Note: my first intention was to test this out on bento/beta, but per ade's requiest I opted to do it quickly.
PR: 24107 Submitted by: George Reid <greid@ukug.uk.freebsd.org>