fix: portable class-based make_current.