updated CopyDependentLibs to work on linux / Win32