Added AC_CHECK_LIB fallback for brew
Merge branch 'master' into plugins