Compatibility with HaxeFlixel/flixel#845