Workaround for NME setTextFormat bug

For bug details look this : https://github.com/haxenme/NME/commit/ff2d558a35744a19b561a071b257e2a6e301dc48#commitcomment-3180457

Also make Console and ConsoleCommand Haxe3 compatible