Fix cublas linking on mac.