The revision which most effectively corrects the dangling modifier is option 1:
While we were waiting for the fireworks to begin, the mosquitoes began to bite.
There must be added one more subject in the subordinate clause "While...begin", apart from the mosquitoes in the main clause because obviously the mosquitoes would not care about the fireworks, but the additional subject "we", or any other person or name, surely would.