Index: os.hpp
--- os.hpp.orig
+++ os.hpp
@@ -137,6 +137,7 @@
 
 #define NM  2048
 
+#include <endian.h>
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -168,6 +169,10 @@
 #include <locale.h>
 
 
+#ifdef OPENSSL_AES
+#include <openssl/evp.h>
+#endif
+
 #ifdef  S_IFLNK
 #define SAVE_LINKS
 #endif
@@ -264,7 +269,7 @@
   #endif
 #endif
 
-#if !defined(BIG_ENDIAN) && defined(_WIN_ALL) || defined(__i386__) || defined(__x86_64__)
+#if !defined(BIG_ENDIAN) && defined(_WIN_ALL) || !defined(__STRICT_ALIGNMENT)
 // Allow not aligned integer access, increases speed in some operations.
 #define ALLOW_MISALIGNED
 #endif
