Fall back to portable implementation of unhandled_exception_count() on MinGW GCC 4.4 as it seems to not work the same way as the newer versions of GCC do.