fix scalaz deprecation warnings and errors