build: make jack part of the autodetected libraries