Use WIN32_LEAN_AND_MEAN on Windows
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 390a6b5..03ef1db 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -519,6 +519,8 @@
   endif(LCMS2_FOUND)
 endif(USE_CMS)
 if(WIN32)
+  # use clean APIs
+  add_definitions(-DWIN32_LEAN_AND_MEAN)
   # gdi32 is needed under win32
   set(poppler_LIBS ${poppler_LIBS} gdi32)
 endif(WIN32)