workaround xlC bug not emitting inline asm
portability fixes for Mac OSX