add extopt to bootstrap template. fixes #1883