Enable -threaded for all OSes (to fix FreeBSD issues)