Fix an issue with the generated configure file used for find_package