add patch to libs needed on cygwin to build ruby, fix #3100