Pytests: restored copying required libraries from build to pytests.