Add wrapper for SetStdHandle.