Plays nicely with Waxe

Just a few minor changes to Lib and the ApplicationMain template that makes openfl-native play nicely with the waxe library.