configure: use pkg check instead of headers

Use pkg check for vorbis/tremor instead of headers and libs.