Add python*-config approach to ldflags that works for OS X.