sox: Fix building on Darwin

Fixes #3493.