Added Win8 compile compatibility.