cmake: avoid rebuilding extensions, and using python-config Reviewed-by: Casey Bodley <cbodley@redhat.com>