www/nginx: fix build with a third-party passenger module
PR: 275161
Sponsored by: Netzkommune GmbH
This commit is required to complete PR 275161. The fix for
www/nginx-devel is not necessary at the moment.
(cherry picked from commit b31426d1f77c12e47a60ff4b6b663826afd4702f)