server: Fix all scala-related warnings