Build the python libraries string ourselves.

Avoids the issue of always including the optmized version, crashing the debug build.