configure: Fix VAAPI library check