Update cmake so that it finds the libraries.