Additional runtime checks.

Patch from http://trac.sagemath.org/ticket/12970 .
In particular, make sure that MPIR builds correctly in VMs
which do not expose all the CPUs capabilities.