fixing wrong python ldflags on FreeBSD and NetBSD