移植到Haxe2.11
Enable calling local functions