In get_content_length(), add a sanity check for mingw32.