This replaces the old managed one. The only direct effect of this is to fix some hard to reproduce crashes in bsnes. In the long run, we'll use this new code to help build more waterbox features.