Issue #1050076 by tstoeckler: Re-utilize libraries_detect() and remove libraries_detect_library(). **API CHANGE**