Fixed dynamic lib linking problem in scipy