Make simple spark project code compile