fix to compile with haxe v3.0.1