I/O port protection: update for windows compatibility.