Fixing compile errors for Spark IDE