Bug 1005309 - Fixed MSVC detection.

--HG--
extra : rebase_source : 0b61de1270eb861234539de675c2d381e217f55c
Bug 973138 - Fixed goto crossing variable declaration (fixes GCC compilation).

--HG--
extra : rebase_source : 8b488731cb06cab3fc1e74e66f88046583e95fc2
Bug 690937 - Fixed compilation on mingw

--HG--
extra : rebase_source : 3ff75ba5d6c9fe68a3f195c86176f498db0db5a4