--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -815,6 +815,7 @@
 		ENDIF()
 	ENDIF()
 
+if(NOT MINGW)
 	# MLang
 	CHECK_INCLUDE_FILES(Mlang.h VMIME_HAVE_MLANG_H)
 	CHECK_LIBRARY_EXISTS("mlang" ConvertINetString "${CMAKE_LIBRARY_PATH}" VMIME_HAVE_MLANG_LIB)
@@ -832,6 +833,7 @@
 			ENDIF()
 		ENDIF()
 	ENDIF()
+ENDIF()
 
 ENDIF()
 
@@ -1019,6 +1021,8 @@
 		INSTALL(
 			TARGETS ${VMIME_LIBRARY_NAME}
 			EXPORT ${VMIME_LIBRARY_NAME}-config
+			RUNTIME DESTINATION "${VMIME_INSTALL_BINDIR}"
+			ARCHIVE DESTINATION "${VMIME_INSTALL_LIBDIR}"
 			LIBRARY DESTINATION "${VMIME_INSTALL_LIBDIR}"
 			PUBLIC_HEADER DESTINATION "${VMIME_INSTALL_INCLUDEDIR}"
 			COMPONENT sharedlibs
