moved some windows only code from common to windows specific