Better way to set the assembler + flags.

Also checks for -no-integrated-as to avoid clang's integrated assembler,
which is sometimes still buggy, especially for ARM.