added support to compile with export name to global/window