--- nxcompshad/Misc.h
+++ nxcompshad/Misc.h
@@ -18,10 +18,10 @@
 #ifndef Misc_H
 #define Misc_H
 
-#include <iostream.h>
+#include <iostream>
 
-#include <errno.h>
-#include <string.h>
+#include <cerrno>
+#include <cstring>
 
 //
 // Error handling macros.
@@ -35,6 +35,6 @@
 // Log file.
 //
 
-extern ostream *logofs;
+extern std::ostream *logofs;
 
 #endif /* Misc_H */
