Fix asset path combine and add haxeflags to templates context