pytest: add selenium option, fix selenium build on darwin