Fixed not being able to call global native functions
Fixed window's alias not being declared in some cases
Updated build