diff --git a/os.hpp b/os.hpp
index 4b21e49..928b161 100644
--- a/os.hpp
+++ b/os.hpp
@@ -51,7 +51,7 @@
 #define _WIN32_WINNT _WIN32_WINNT_WINXP
 #endif
 
-#if !defined(ZIPSFX)
+#if !defined(ZIPSFX) && !defined(RAR_SMP)
 #define RAR_SMP
 #endif
 
@@ -60,9 +60,7 @@
 #include <windows.h>
 #include <prsht.h>
 #include <shlwapi.h>
-#pragma comment(lib, "Shlwapi.lib")
-#include <PowrProf.h>
-#pragma comment(lib, "PowrProf.lib")
+#include <powrprof.h>
 #include <shellapi.h>
 #include <shlobj.h>
 #include <winioctl.h>
