Add win_2k3 detection + code style changes