Haxe 3 compatibility + examples fixes

Just changed few lines, Hash -> Map, and changed const DEG_TO_RAD to just var.

Looks like latest version of NME have it's own stage var. So I just renamed "stage" to "stage2".

What is the license of your framework? Can it be used for commercial projects?