fix for flixel sound issues on focus lost, adapted from flixel-gdx/flixel-gdx#41