add XMLHttpRequest dependencies to avoid issues when running serverside