Index: build.sh
--- build.sh.orig	2021-10-19 02:39:26.000000000 +0200
+++ build.sh	2021-10-22 21:18:23.779319000 +0200
@@ -60,7 +60,7 @@
   fi
   CC="sem -j $parallel --id $$ ${CC}"
 fi
-COMP_FLAGS="${CPPFLAGS:-} ${CFLAGS:-} -w -fmax-errors=3 -O3 -fno-strict-aliasing -fno-ident $extraBuildArgs"
+COMP_FLAGS="${CPPFLAGS:-} ${CFLAGS:-} -fno-strict-aliasing -fno-ident $extraBuildArgs"
 LINK_FLAGS="${LDFLAGS:-} "
 PS4=""
 # platform detection
@@ -105,7 +105,6 @@
     ;;
   *freebsd* )
     myos="freebsd"
-    CC="clang"
     LINK_FLAGS="$LINK_FLAGS -lm"
     ;;
   *crossos* )
@@ -124,7 +123,6 @@
     ;;
   *darwin* )
     myos="macosx"
-    CC="clang"
     LINK_FLAGS="$LINK_FLAGS -ldl -lm"
     if [ "$HOSTTYPE" = "x86_64" ] ; then
       ucpu="amd64"
Index: install.sh
--- install.sh.orig	2021-10-19 02:39:26.000000000 +0200
+++ install.sh	2021-10-22 21:10:04.744802000 +0200
@@ -61,6 +61,9 @@
       mkdir -p $1/nim
       mkdir -p $bindir
       mkdir -p $configdir
+      mkdir -p $libdir
+      mkdir -p $docdir
+      mkdir -p $datadir
       ;;
   esac
 
