Fixed most compiler errors: the assembler needs to be protected from all C declarations.