Pass some globals into sm_init() so that it uses SASL if necessary.