Add dependency on the shared libraries to the python build.
(Closes: #770841).  Release as -8.