Revert "remove un-needed globals"

This reverts commit 5311c6e2d0efcb5ef7218210ddf0f579eba68c14.
restore accidentally removed wgEnableAdEngineExt var