Get rid of warning message on Windows for deprecated APIs