add windows 8/8.1 compatibility mode code