Move window.open shims, update Makefile.