tools/building: tolerant old version of python

Python2.6 does not have subprocess.STARTUPINFO and some old Python2.7
does not have subprocess.STARTF_USESHOWWINDOW(unfortunately the doc does
not say from which version it has). So if it has errors on this, use a
default startupinfo and pray for luck.