fix compiler warnings by importing required scala features