cleanup: removed unused setsublevel
clang related fixes
memchr, which clang -Os calls for some reason
AS and ASFLAGS for assembling

As a side effect, removes the need for -Qunused-arguments with CC=clang.
What clang actually complains about is using -nostdinc for assembler calls.