MockStream port to haxe 3.0.