Added target copyToLib to include dependent libs