Bug 988271 - Relanded configure.in part after bug 999260.
Bug 1008192 - Don't try to use hidden visibility on mingw. r=glandium