diff --git a/build/unix/makeonepcm.sh b/build/unix/makeonepcm.sh
index 9391b11fb77de6945d43b1c5d02e99756b207353..73b323951f4b9b7d77f9b89f2b3805539433c9ed 100755
--- a/build/unix/makeonepcm.sh
+++ b/build/unix/makeonepcm.sh
@@ -179,6 +179,12 @@ cat $srcdir/build/unix/gminimalHeaders.list | sed -e 's|include/|#include "|' -e
  -e /zlib.h/d \
  -e /gzguts.h/d \
  -e /zutil.h/d \
+ -e /TGCocoa.h/d \
+ -e /TGQuartz.h/d \
+ -e /THbook.*.h/d \
+ -e /TMacOSXSystem.h/d \
+ -e /X11Atoms.h/d \
+ -e /XLFDParser.h/d \
 > all.h
 
 echo '#include "cling/Interpreter/DynamicLookupRuntimeUniverse.h"' >> all.h