adding copy needed for build and checking for dynamic libs for sample