Add support for thiscall pinvokes on x86.

Licensed under MIT/X11.
Add test for native thiscall methods.

Licensed under MIT/X11.
[runtime] Ignore --llvm when LLVM is not enabled in configure.