Fix py3k linking issue on Linux

We now try the ${PYTHON_PREFIX}/lib directory first as it is more
likely to have the shared library also, and not just the static one.