build.py: add Debian Squeeze.

Add building for Debian Squeeze (I know it's old, don't ask :-). Update get_output() to work with python 2.6.