Python 3 detection: support pyvenv virtual environments

The pyvenv script (new in 3.3) doesn't link as much into the target
directory as the old 'virtualenv' program, so use the new
sys.base_prefix to get the location of include/Python.h. Fall back to
sys.prefix if on Python 3.2.