Merge pull request #280 from Alexpux/mingw-w64-builds

Make variable local. Terminate if dlls can't be copied.