Better library check.