Update monad to compile with haxe 3.0