fixed errors when accessing std package with haxe the classpath (close #2193)