Adaptation of merging static libs both for Windows and Linux

Can I ask you to include this changes in upstream?
I have tested it on Windows and Linux, too. 
Created static library on Linux  is the same like before. It contains all the needed object files.
Also linking with Dirac is succesfull. I know pcmsolver needs python at least 2.6, but someone somewhere
is using 2.4 to build Dirac, so i made the script able to run from version 2.4.

You can compare if you want to:
origin: https://dl.dropboxusercontent.com/u/18765271/origin/libpcm.a
fork:    https://dl.dropboxusercontent.com/u/18765271/fork/libpcm.a