Added support for i586-mingw32msvc compilation

Added patch to allow use of AR/RANLIB environment variables