Fixed gcc inline assembly issue with PIC and older gcc compilers
Some gcc versions had problems with the recently introduced inline
assembly for cpuid (clobbering of ebx register), and since we used
a slightly different inline assembly instruction test in cmake we
did not detect it properly. This patch both makes the inline asm
itself much more portable, and we also test with exactly the same
instruction in cmake so we don't set the flag for supporting inline
asm unless we know this instruction works.
Change-Id: Ib479e2706024abb5e3f66d0249291ce55f1257b1