Accommodate older Python versions (2.4, 2.5, 2.6)

Although `subprocess` was added in 2.4, `subprocess.check_output` wasn't added until version 2.7. So if `subprocess.check_output` is not available, build.py should use `subprocess.Popen` instead. This prevents the build script from failing at this point when running with older versions of Python.