Attempt to simplify locating library files by modifying find_programs_and_libraries.cmake