Fixed so that include and link relies on CMAKE_PREFIX_PATH if given.