Fixes for windows

* support for MinGW64
* automatic shared lib copying