Potential fix for building with custom python installations

Ran into this problem in pursuit of numenta/nupic#708, which may also be affecting internal Grok testing pipelines.  The builds would pass, but the c++ binaries weren't properly linked to the python shared lib.

cc: @subutai @DavidRagazzi