memory_barrier/asm: compile fixes (thanks to michael dickey)