diff --git a/src/plugins/coreplugin/progressmanager/progressmanager_mac.mm b/src/plugins/coreplugin/progressmanager/progressmanager_mac.mm
index 486fa53fb0ef57721f89754e314ca73ca7f1554b..267b6b5dfb090fd374aa2d55909ad0ac27cb0d4e 100644
--- a/src/plugins/coreplugin/progressmanager/progressmanager_mac.mm
+++ b/src/plugins/coreplugin/progressmanager/progressmanager_mac.mm
@@ -41,6 +41,9 @@ void Core::Internal::ProgressManagerPrivate::cleanup()
 #import <AppKit/NSDockTile.h>
 #import <AppKit/NSApplication.h>
 #import <AppKit/NSImageView.h>
+#import <AppKit/NSCIImageRep.h>
+#import <AppKit/NSBezierPath.h>
+#import <AppKit/NSColor.h>
 #import <Foundation/NSString.h>
 
 @interface ApplicationProgressView : NSView {
@@ -89,6 +92,7 @@ static ApplicationProgressView *sharedProgressView = nil;
 
 - (void)drawRect:(NSRect)rect
 {
+    Q_UNUSED(rect)
     NSRect boundary = [self bounds];
     [[NSApp applicationIconImage] drawInRect:boundary
                                      fromRect:NSZeroRect