Copy dll correctly for MinGW environment