Fix segfault due to linking issue.

On Darwin, link with python library from conda instead of from system.