compilation fixes for gcc on Solaris and AIX

(note: plasma_spin asm on AIX not handled by gcc <4.7 in 64-bit compile)