Added some support for Windoze.