Tweaks to make Flash work