diff --git a/lib/Makefile b/lib/Makefile
index c592114..f2ea5b6 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -117,10 +117,10 @@ YASM_INCLUDES := $(foreach i,$(ASM_INCLUDE_DIRS),-I $i)
 NASM_INCLUDES := $(foreach i,$(ASM_INCLUDE_DIRS),-I$i/)
 ifneq ($(MINGW),0)
 YASM_FLAGS := -f x64 -f win64 -X gnu -g dwarf2 -DWIN_ABI $(YASM_INCLUDES)
-NASM_FLAGS := -Werror -fwin64 -Xvc -gcv8 -DWIN_ABI $(NASM_INCLUDES)
+NASM_FLAGS := -fwin64 -Xvc -gcv8 -DWIN_ABI $(NASM_INCLUDES)
 else
 YASM_FLAGS := -f x64 -f elf64 -X gnu -g dwarf2 -DLINUX -D__linux__ $(YASM_INCLUDES)
-NASM_FLAGS := -Werror -felf64 -Xgnu -gdwarf -DLINUX -D__linux__ $(NASM_INCLUDES)
+NASM_FLAGS := -felf64 -Xgnu -gdwarf -DLINUX -D__linux__ $(NASM_INCLUDES)
 endif
 
 DEBUG_OPT ?= -O0
@@ -170,7 +170,6 @@ endif
 
 # prevent SIMD optimizations for non-aesni modules
 CFLAGS_NO_SIMD = $(CFLAGS) -O1
-CFLAGS += $(OPT)
 
 # Set generic architectural optimizations
 OPT_X86 := -msse4.2
@@ -758,7 +757,7 @@ install: $(LIB_DIR)/$(LIBNAME)
 	install -m 0444 $(MAN2) $(MAN_DIR)
 	install -d $(LIB_INSTALL_DIR)
 ifeq ($(SHARED),y)
-	install -s -m $(LIBPERM) $(LIB_DIR)/$(LIBNAME) $(LIB_INSTALL_DIR)
+	install -m $(LIBPERM) $(LIB_DIR)/$(LIBNAME) $(LIB_INSTALL_DIR)
 else
 	# must not strip symbol table for static libs
 	install -m $(LIBPERM) $(LIB_DIR)/$(LIBNAME) $(LIB_INSTALL_DIR)
diff --git a/lib/win_x64.mak b/lib/win_x64.mak
index b33f5b1..69603d5 100644
--- a/lib/win_x64.mak
+++ b/lib/win_x64.mak
@@ -125,7 +125,7 @@ LINK_TOOL = link
 LINKFLAGS = $(DLFLAGS) /nologo /machine:X64
 
 AS = nasm
-AFLAGS = $(DAFLAGS) -Werror -fwin64 -Xvc -DWIN_ABI -I.
+AFLAGS = $(DAFLAGS) -fwin64 -Xvc -DWIN_ABI -I.
 
 # dependency
 !ifndef DEPTOOL
diff --git a/perf/Makefile b/perf/Makefile
index f204e57..9db0818 100644
--- a/perf/Makefile
+++ b/perf/Makefile
@@ -45,9 +45,9 @@ endif
 
 ifeq ($(MINGW),0)
 CFLAGS += -DLINUX
-NASM_FLAGS := -Werror -felf64 -Xgnu -gdwarf -DLINUX -D__linux__
+NASM_FLAGS := -felf64 -Xgnu -gdwarf -DLINUX -D__linux__
 else
-NASM_FLAGS := -Werror -fwin64 -Xvc -gcv8 -DWIN_ABI
+NASM_FLAGS := -fwin64 -Xvc -gcv8 -DWIN_ABI
 endif
 
 # if "-z ibt" is supported then assume "-z shstk, -z cet-report=error" are also supported
@@ -62,21 +62,21 @@ CFLAGS += -fcf-protection=full
 endif
 
 ifeq ($(MINGW),0)
-LDFLAGS = -fPIE -z noexecstack -z relro -z now -pthread
+LDFLAGS += -fPIE -z noexecstack -z relro -z now -pthread
 endif
 ifeq ($(CC_HAS_CET),1)
 LDFLAGS += -fcf-protection=full -Wl,-z,ibt -Wl,-z,shstk -Wl,-z,cet-report=error
 endif
 LDLIBS = -lIPSec_MB
 
-ifeq ("$(shell test -e $(INSTPATH) && echo -n yes)","yes")
+#ifeq ("$(shell test -e $(INSTPATH) && echo -n yes)","yes")
 # library installed
-CFLAGS +=
-else
+#CFLAGS +=
+#else
 # library not installed
 CFLAGS +=  -I../lib/include -I../lib
 LDFLAGS += -L$(LIB_DIR)
-endif
+#endif
 
 DEBUG_OPT ?= -O0
 ifeq ($(DEBUG),y)
diff --git a/perf/win_x64.mak b/perf/win_x64.mak
index 2f28549..3790e5f 100644
--- a/perf/win_x64.mak
+++ b/perf/win_x64.mak
@@ -69,7 +69,7 @@ LNK = link
 LFLAGS = /out:$(APP).exe $(DLFLAGS)
 
 AS = nasm
-AFLAGS = -Werror -fwin64 -Xvc -DWIN_ABI
+AFLAGS = -fwin64 -Xvc -DWIN_ABI
 
 OBJECTS = ipsec_perf.obj msr.obj misc.obj
 
diff --git a/test/Makefile b/test/Makefile
index 72c0dc8..dfeb862 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -66,15 +66,15 @@ endif
 YASM_FLAGS := -f x64 -f elf64 -X gnu -g dwarf2 -DLINUX -D__linux__
 ifeq ($(MINGW),0)
 CFLAGS += -DLINUX
-NASM_FLAGS := -Werror -felf64 -Xgnu -gdwarf -DLINUX -D__linux__
+NASM_FLAGS := -felf64 -Xgnu -gdwarf -DLINUX -D__linux__
 else
-NASM_FLAGS := -Werror -fwin64 -Xvc -gcv8 -DWIN_ABI
+NASM_FLAGS := -fwin64 -Xvc -gcv8 -DWIN_ABI
 endif
 
 ifeq ($(MINGW),0)
-LDFLAGS = -fPIE -z noexecstack -z relro -z now
+LDFLAGS += -fPIE -z noexecstack -z relro -z now
 else
-LDFLAGS = -fPIE
+LDFLAGS += -fPIE
 endif
 
 ifeq ($(CC_HAS_CET),1)
@@ -82,14 +82,14 @@ LDFLAGS += -fcf-protection=full -Wl,-z,ibt -Wl,-z,shstk -Wl,-z,cet-report=error
 endif
 LDLIBS = -lIPSec_MB
 
-ifeq ("$(shell test -r $(INSTPATH) && echo -n yes)","yes")
+#ifeq ("$(shell test -r $(INSTPATH) && echo -n yes)","yes")
 # library installed
-CFLAGS +=
-else
+#CFLAGS +=
+#else
 # library not installed
 CFLAGS +=  -I../lib/include -I../lib
 LDFLAGS += -L$(LIB_DIR)
-endif
+#endif
 
 FUZZ_CFLAGS = -I../lib -L../lib $(CFLAGS) -g -fsanitize=fuzzer,address,leak
 
diff --git a/test/win_x64.mak b/test/win_x64.mak
index 67959bb..2b4585e 100644
--- a/test/win_x64.mak
+++ b/test/win_x64.mak
@@ -68,7 +68,7 @@ TEST_LFLAGS = /out:$(TEST_APP).exe $(DLFLAGS)
 XVALID_LFLAGS = /out:$(XVALID_APP).exe $(DLFLAGS)
 
 AS = nasm
-AFLAGS = -Werror -fwin64 -Xvc -DWIN_ABI
+AFLAGS = -fwin64 -Xvc -DWIN_ABI
 
 # dependency
 !ifndef DEPTOOL
diff --git a/test/wycheproof/Makefile b/test/wycheproof/Makefile
index faf051d..5b86b09 100644
--- a/test/wycheproof/Makefile
+++ b/test/wycheproof/Makefile
@@ -67,14 +67,14 @@ LDFLAGS += -fcf-protection=full -Wl,-z,ibt -Wl,-z,shstk -Wl,-z,cet-report=error
 endif
 LDLIBS = -lIPSec_MB
 
-ifeq ("$(shell test -r $(INSTPATH) && echo -n yes)","yes")
+#ifeq ("$(shell test -r $(INSTPATH) && echo -n yes)","yes")
 # library installed
-CFLAGS +=
-else
+#CFLAGS +=
+#else
 # library not installed
 CFLAGS +=  -I../../lib
 LDFLAGS += -L$(LIB_DIR)
-endif
+#endif
 
 DEBUG_OPT ?= -O0
 ifeq ($(DEBUG),y)
